<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>agiledev HR System</title>
<link rel="stylesheet" type="text/css" href="resources/easyui/themes/gray/easyui.css">
<script src="resources/easyui/jquery-1.6.min.js"></script>
<script src="resources/easyui/jquery.easyui.min.js"></script>
<script>
$(function(){
	var p = $('body').layout('panel','west').panel();
	setTimeout(function(){
		$('body').layout('collapse','east');
	},0);
	
	$('#tt').tree({
		checkbox: false,
		url: 'login/index-menu',
		onClick:function(node){
			$(this).tree('toggle', node.target);
			if($(node.text).attr("hh")==null || $.trim($(node.text).attr("hh"))=="")return;
			var has = false;
			$("ul.tabs").find('.tabs-title').each(function(i,o){
				if ($(this).text() == $(node.text).text()) {
					has = true;
				}
			});
			if (!has) {
				$('#tabs').tabs('add', {
					title: node.text,
					//href:,
					content:'<iframe height="483" width="100%" frameborder="0" scrolling="auto" allowtransparency="true" src="'+$(node.text).attr("hh")+'"></iframe>',
					closable: true,
					selected: true
				});
			}else{
				$('#tabs').tabs("select",node.text);
			}
		},
		onLoadSuccess:function(node,data){
			$("#loading").remove();
		}
	});
	
	
});
</script>
<style type="text/css">
#loading{z-index:100;padding:5px 0 5px 9px;
background:#c44;left:0;top:0;width:90px;
color:#fff;position:fixed}
</style>
</head>
<body class="easyui-layout">
<script type="text/javascript">document.write('<div id="loading">正在加载<\/div>');</script>
	<div region="north" border="false" style="height:60px;background:#B3DFDA;">
		<span style="color: #676767;font-weight: bold;left: 40%;position: absolute;top: 30%;">agiledev HR System</span>
		<span style=" float: right;margin-top: 20px;">欢迎你，admin！<a href="login.html">注销</a> <a href="help.html" target="_blank">帮助</a></span>
	</div>
	<div id="mainmenu" region="west" split="true" title="主菜单" style="width:170px;padding:10px;">
		<ul id="tt"></ul>
	</div>
	<div region="south" border="false" style="height:30px;background:#A9FACD;padding:10px;">版权信息</div>
	<div region="center" title="主界面">
		<div id="tabs" class="easyui-tabs" ></div>
	</div>
</body>
</html>